﻿<!--教材-教研室管理教材 -->
<style>
    .card {
        border: 1px solid #eee;
        -webkit-transition: all .5s ease-in-out;
        -moz-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
        width: 140PX;
        padding: 15PX;
    }

        .card:hover {
            box-shadow: 0px 2px 8px #3252f1;
            cursor: pointer;
            -webkit-transition: all .5s ease-in-out;
            -moz-transition: all .2s ease-in-out;
            transition: all .2s ease-in-out;
        }

    h5 {
        FONT-WEIGHT: 700;
        MARGIN-TOP: 2PX;
    }

    img {
        border-radius: 50%;
    }
</style>
<template>
    <div class="work">
        <div class="main-content ft16 mt10  c666" style="min-height:550px;padding:20px; overflow: auto;">
            <div>
                <div class="col-md-12 mb10 hidden">
                    <p>选择学期:</p>
                    <el-select placeholder="请选择学期" v-model="xq" class="form-control filter" style="height: 34px;padding:0px;width:200px;margin-top:10PX">

                        <el-option v-for="item in xqdata"
                                   :key="item.xq"
                                   :label="item.xq"
                                   :value="item.xq">
                            <span style="float: left">{{ item.xq }}</span>
                            <span v-show="item.isnow=='Y'" style="float: right; color: #8492a6; font-size: 13px">当前 </span>
                        </el-option>
                    </el-select>
                </div>
                <div class="col-md-12 mb10">
                    <h4 class="title ft16" style="FONT-WEIGHT: 700; border-left: 3px solid #12b8f6;text-indent: 0.5em;display: inline-block;">教材审核</h4>
                </div>
                <div class="col-md-2" v-for="(item, index) in cddata">
                    <div class="thumbnail card" @click="gomenu(item)">
                        <img :src="'/Web/HNJW/img/'+item.img+'.png'" onerror="javascript: this.src = '/ViewV5/JWWeb/img/5.png'" style="height: 80px; width: 80px; display: block; ">
                        <div class="caption text-center" style="padding: 4px;">
                            <h5 v-text="item.mc"></h5>
                        </div>
                    </div>
                </div>
                <div class="col-md-12 mb10">
                    <h4 class="title ft16" style="FONT-WEIGHT: 700; border-left: 3px solid #12b8f6;text-indent: 0.5em;display: inline-block;">教材修改</h4>
                </div>
                <div class="col-md-2" v-for="(item, index) in cddata1">
                    <div class="thumbnail card" @click="gomenu(item)">
                        <img :src="'/Web/HNJW/img/'+item.img+'.png'" onerror="javascript: this.src = '/ViewV5/JWWeb/img/5.png'" style="height: 80px; width: 80px; display: block; ">
                        <div class="caption text-center" style="padding: 4px;">
                            <h5 v-text="item.mc"></h5>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</template>

<script>
            //{ url: "http://jw.yyvtc.cn/ViewV5/DATABI/YBPVIEW.html?ID=49&vtype=1", mc: "教材修改记录", img: "3", gnsm: "", funid: "" }
    module.exports = {
        props: [],
        data: function () {
            return {
                xq:"",
                xqdata:[],
                cddata: [
                    { url: "/ViewV5/AppPage/QJJW/Vue/JCGL_JYSSH", mc: "学生教材审核", img: "2", gnsm: "",funid:"293" }
                ],
                cddata1: [
                    { url: "/ViewV5/AppPage/QJJW/Vue/JCGL_JYSXG", mc: "教材修改", img: "2", gnsm: "",funid:"" },
                ],
            }
        },
        methods: {
            gomenu: function (item) {
                if(item.url.indexOf('http')>-1){
                    ComFunJS.winviewform(item.url,'教材修改记录')
                }else{
                    this.$root.addTab(item.url, item.mc, "", "");
                }
            },
            InitWigetData: function () {
                this.xqdata = JSON.parse(localStorage.getItem("xqdata"));
                this.xq=this.xqdata[0].xq;
            },
        },
        mounted: function () {
            var pro = this;
            pro.$nextTick(function () {
                pro.InitWigetData();
            })

        }
    };
</script>